.class Lcom/instagram/android/widget/aj;
.super Ljava/lang/Object;
.source "ShareTableHelper.java"

# interfaces
.implements Lcom/instagram/android/widget/h;


# instance fields
.field final synthetic a:Lcom/instagram/model/a/b;

.field final synthetic b:Lcom/instagram/android/widget/ag;


# direct methods
.method constructor <init>(Lcom/instagram/android/widget/ag;Lcom/instagram/model/a/b;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 221
    iput-object p1, p0, Lcom/instagram/android/widget/aj;->b:Lcom/instagram/android/widget/ag;

    iput-object p2, p0, Lcom/instagram/android/widget/aj;->a:Lcom/instagram/model/a/b;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/instagram/android/widget/IgCheckButton;Z)V
    .locals 4
    .parameter
    .parameter

    .prologue
    const/4 v2, 0x1

    const/4 v3, 0x0

    .line 225
    if-nez p2, :cond_0

    .line 226
    iget-object v0, p0, Lcom/instagram/android/widget/aj;->a:Lcom/instagram/model/a/b;

    invoke-interface {v0, v3}, Lcom/instagram/model/a/b;->b(Z)V

    .line 245
    :goto_0
    iget-object v0, p0, Lcom/instagram/android/widget/aj;->b:Lcom/instagram/android/widget/ag;

    invoke-static {v0}, Lcom/instagram/android/widget/ag;->c(Lcom/instagram/android/widget/ag;)V

    .line 246
    return-void

    .line 228
    :cond_0
    invoke-static {}, Lcom/instagram/android/g/b;->a()Lcom/facebook/a/b;

    move-result-object v0

    .line 229
    invoke-virtual {v0}, Lcom/facebook/a/b;->b()Z

    move-result v1

    if-eqz v1, :cond_1

    .line 230
    const-string v0, "ShareTableHelper"

    const-string v1, "Valid Facebook session."

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 233
    iget-object v0, p0, Lcom/instagram/android/widget/aj;->b:Lcom/instagram/android/widget/ag;

    invoke-static {v0}, Lcom/instagram/android/widget/ag;->b(Lcom/instagram/android/widget/ag;)Lcom/instagram/e/b/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/b;->getContext()Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/widget/aj;->b:Lcom/instagram/android/widget/ag;

    invoke-static {v1}, Lcom/instagram/android/widget/ag;->b(Lcom/instagram/android/widget/ag;)Lcom/instagram/e/b/b;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/e/b/b;->u()Landroid/support/v4/app/aj;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/android/widget/j;->a(Landroid/content/Context;Landroid/support/v4/app/aj;)V

    .line 235
    iget-object v0, p0, Lcom/instagram/android/widget/aj;->b:Lcom/instagram/android/widget/ag;

    invoke-static {v0}, Lcom/instagram/android/widget/ag;->d(Lcom/instagram/android/widget/ag;)Lcom/instagram/android/creation/widget/UploadCompoundButton;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->setChecked(Z)V

    .line 236
    iget-object v0, p0, Lcom/instagram/android/widget/aj;->a:Lcom/instagram/model/a/b;

    invoke-interface {v0, v2}, Lcom/instagram/model/a/b;->b(Z)V

    goto :goto_0

    .line 238
    :cond_1
    const-string v1, "ShareTableHelper"

    const-string v2, "Invalid Facebook session."

    invoke-static {v1, v2}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 239
    iget-object v1, p0, Lcom/instagram/android/widget/aj;->b:Lcom/instagram/android/widget/ag;

    invoke-static {v1}, Lcom/instagram/android/widget/ag;->d(Lcom/instagram/android/widget/ag;)Lcom/instagram/android/creation/widget/UploadCompoundButton;

    move-result-object v1

    invoke-virtual {v1, v3}, Lcom/instagram/android/creation/widget/UploadCompoundButton;->setChecked(Z)V

    .line 240
    iget-object v1, p0, Lcom/instagram/android/widget/aj;->b:Lcom/instagram/android/widget/ag;

    invoke-static {v1}, Lcom/instagram/android/widget/ag;->b(Lcom/instagram/android/widget/ag;)Lcom/instagram/e/b/b;

    move-result-object v1

    sget-object v2, Lcom/instagram/android/g/i;->a:[Ljava/lang/String;

    iget-object v3, p0, Lcom/instagram/android/widget/aj;->b:Lcom/instagram/android/widget/ag;

    invoke-static {v3}, Lcom/instagram/android/widget/ag;->e(Lcom/instagram/android/widget/ag;)Lcom/instagram/android/widget/ao;

    move-result-object v3

    invoke-virtual {v0, v1, v2, v3}, Lcom/facebook/a/b;->a(Landroid/support/v4/app/Fragment;[Ljava/lang/String;Lcom/facebook/a/e;)V

    goto :goto_0
.end method
